import React from 'react';
import {
  StyleSheet,
  View,
  ScrollView,
} from 'react-native';
const Dimensions = require('Dimensions');
const {width} = Dimensions.get('window');
import OrderList from '../../../component/OrderList'
import {setSpText,setHW} from '../../../component/ScreenUtil'
export default class NoBuy extends React.Component {
  constructor(props) {
    super(props);
    global.log(props,'props0')
    this.state  = {
    }
}
  render() {
    return (
      <View style={styles.allOrder}>
          <OrderList dataList={this.props.allOrderList}
          {...this.props}>
          </OrderList>
      </View>
    );
  }
}
const styles = StyleSheet.create({
  allOrder:{
    backgroundColor: '#F7F7F9',
  },
  title:{
    fontSize:setSpText(34),
    textAlign:'center',
    color:'#333',
    fontWeight: 'bold',
    backgroundColor:'#fff',
    paddingBottom:setHW(20),
    paddingTop:setHW(20),
    marginBottom:setHW(20),
  },
  myCollectCare:{
    paddingLeft:setHW(20),
    paddingRight:setHW(20),
    paddingTop:setHW(28),
    paddingBottom:setHW(28),
    backgroundColor:'#fff',
    flexDirection: 'row',
    justifyContent:'space-between',
    marginBottom:setHW(4),
  },
  rightEnter:{
    flexDirection: 'row',
    justifyContent:'space-between',
    alignItems: 'center',
  },
  myText:{
    fontSize:setSpText(30),
    width:setHW(160),
    color:'#333',
  },
  num:{
    fontSize:setSpText(30),
    color:'#999',
    paddingRight:setHW(20),
  },
  enterIcon:{
    width:setHW(24),
    height:setHW(24),
  },
  haveCourse:{
    color:'#666666',
    fontSize:setSpText(24),
    paddingLeft:setHW(20),
    paddingBottom:setHW(8),
    paddingTop:setHW(16),
  },
  enterCourseBox:{
    paddingLeft:setHW(20),
    paddingRight:setHW(20),
    backgroundColor:'#fff',
  },
  enterCourse:{
    borderTopColor:"#EBEBEB",
    borderTopWidth:1,
    backgroundColor:'#fff',
    height:setHW(60),
    flexDirection: 'row',
    justifyContent:'space-between',
  },
  enterRight:{
    flexDirection: 'row',
    justifyContent:'flex-start',
  },
  text:{
    color:"#999",
    paddingTop:setHW(12),
    paddingBottom:setHW(12),
    fontSize:setSpText(24),
  },
  enterText:{
    color:'#666',
    textAlign:'right',
    paddingRight:setHW(8),
    paddingTop:setHW(12),
    paddingBottom:setHW(12),
    fontSize:setSpText(24),
  },
  enterCourseIcon:{
    width:setHW(20),
    height:setHW(20),
    marginTop:setHW(18),
  }
})